package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PcUserGalleryMapper;
import com.ruoyi.system.domain.PcUserGallery;
import com.ruoyi.system.service.IPcUserGalleryService;

/**
 * 用户图片库 服务层实现
 * 
 * @author ruoyi
 */
@Service
public class PcUserGalleryServiceImpl implements IPcUserGalleryService
{
    @Autowired
    private PcUserGalleryMapper pcUserGalleryMapper;

    /**
     * 查询用户图片库
     * 
     * @param galleryId 用户图片库主键
     * @return 用户图片库
     */
    @Override
    public PcUserGallery selectPcUserGalleryByGalleryId(Long galleryId)
    {
        return pcUserGalleryMapper.selectPcUserGalleryByGalleryId(galleryId);
    }

    /**
     * 查询用户图片库列表
     * 
     * @param pcUserGallery 用户图片库
     * @return 用户图片库
     */
    @Override
    public List<PcUserGallery> selectPcUserGalleryList(PcUserGallery pcUserGallery)
    {
        return pcUserGalleryMapper.selectPcUserGalleryList(pcUserGallery);
    }

    /**
     * 新增用户图片库
     * 
     * @param pcUserGallery 用户图片库
     * @return 结果
     */
    @Override
    public int insertPcUserGallery(PcUserGallery pcUserGallery)
    {
        return pcUserGalleryMapper.insertPcUserGallery(pcUserGallery);
    }

    /**
     * 修改用户图片库
     * 
     * @param pcUserGallery 用户图片库
     * @return 结果
     */
    @Override
    public int updatePcUserGallery(PcUserGallery pcUserGallery)
    {
        return pcUserGalleryMapper.updatePcUserGallery(pcUserGallery);
    }

    /**
     * 批量删除用户图片库
     * 
     * @param galleryIds 需要删除的用户图片库主键
     * @return 结果
     */
    @Override
    public int deletePcUserGalleryByGalleryIds(Long[] galleryIds)
    {
        return pcUserGalleryMapper.deletePcUserGalleryByGalleryIds(galleryIds);
    }

    /**
     * 删除用户图片库信息
     * 
     * @param galleryId 用户图片库主键
     * @return 结果
     */
    @Override
    public int deletePcUserGalleryByGalleryId(Long galleryId)
    {
        return pcUserGalleryMapper.deletePcUserGalleryByGalleryId(galleryId);
    }
}

